package com.zx.eval.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zx.common.utils.PageUtils;
import com.zx.common.utils.Query;

import com.zx.eval.dao.EvalQuestionDao;
import com.zx.eval.entity.EvalQuestionEntity;
import com.zx.eval.service.EvalQuestionService;


@Service("evalQuestionService")
public class EvalQuestionServiceImpl extends ServiceImpl<EvalQuestionDao, EvalQuestionEntity> implements EvalQuestionService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
//        IPage<EvalQuestionEntity> page = this.page(
//                new Query<EvalQuestionEntity>().getPage(params),
//                new QueryWrapper<EvalQuestionEntity>()
//        );
//
//        return new PageUtils(page);
        IPage<EvalQuestionEntity> page = new Query<EvalQuestionEntity>().getPage(params);
        page.setRecords(baseMapper.getManagerList(page, params));
        return new PageUtils(page);
    }

}